﻿using Hehq.Dtos;
using Hehq.Sys.Apps.Dict.Dtos.DictItemDtos.Forms;
using Hehq.Sys.Apps.Dict.Dtos.DictItemDtos;
using Hehq.Sys.Apps.Dict.Dtos;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Hehq.Sys.Apps.Dict;
using Hehq.Core.AppsImpl.Attributes;

namespace Hehq.Tenant.WebApi.Dict
{
    [PerModule(203, "租户单值字典管理")]
    public  class SimpleAppService:AbsWebApp<ISimpleApp>,IWebApi
    {
        public List<SimpleDictInfo> GetList(OneDictClassifyParam param)
        {

            var list = this.App.GetAllItems(param);

            return list;
        }


        public MainKey<int> Create(DictItemCreateFormItem param)
        {
            return this.App.Create(param);
        }

        public bool Remove(SimpleDictItemKeyParam param)
        {
            return this.App.Remove(param);
        }

        public bool Save(DictItemEditFormItem param)
        {

            return this.App.Save(param);
        }
    }
}
